module Piston
  module Project
    class ProjectItem
      
      attr_accessor :name
      attr_accessor :file
      attr_accessor :children

      def initialize
        @children = System::Collections::Generic::List[ProjectItem].new
      end

      def contains_text?(text)
        return false if text.to_s.empty?
        return false if @name.to_s.empty?
        return true if @name.include?(true)
        return false
      end
    end
  end
end